package org.dromara.bean.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.bean.domain.HisPaymentLog;
import org.dromara.bean.domain.pay.OrderModel;
import org.dromara.bean.domain.vo.Result;
import org.dromara.common.core.domain.R;


/**
 * @Description: 广告
 * @Author: jeecg-boot
 * @Date: 2020-08-03
 * @Version: V1.0
 */
public interface IBasePaymentLogService extends IService<HisPaymentLog> {

    /**
     * 查询列表
     *
     * @param page
     * @return
     */
    IPage<HisPaymentLog> pageList(Page<HisPaymentLog> page);

    /**
     * 根据订单号查询
     *
     * @param orderNo
     * @return
     */
    HisPaymentLog getByOrderNumber(String orderNo);

    /**
     * 修改状态
     *
     * @param resultMag
     * @return
     */
    HisPaymentLog updatePaymentLog(R<?> resultMag);

    /**
     * 添加支付
     *
     * @param orderModel
     * @return
     */
    int insertPaymentLog(OrderModel orderModel);
}
